<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  <div class="whitebg notice">
      <h2 class="htitle"><a href="/noticeList.html">网站公告</a></h2>
      <ul>
      <c:forEach items="${notice}" var="n" begin="0" end="5">
        <li><a href="/noticecontent.html?advid=${n.advid}">${n.advtitle}</a></li>
             </c:forEach>
      </ul>
    </div>